package javase2.day06;

import java.io.BufferedReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Demo6 {
	public static void main(String args[]) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter("sync.txt");
		String str;
		while((str=in.readLine())!=null){
			out.println(str);
			if(str.equalsIgnoreCase("bye")){
				break;
			}
		}
		out.close();
	}
}
